/**
 * 文件名：BigScreenDataController.java
 *
 * 创建人：虞云波 - .com
 *
 * 创建时间：2017年12月12日 下午3:30:20
 *
 * 版权所有：江苏晟邦网络科技有限公司
 */
package com.cbwl.eoas.web.controller.report;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.cbwl.eoas.common.web.Result;
import com.cbwl.eoas.report.api.data.IBigScreenDataService;

/**
 * <p>[描述信息：大屏首页控制层]</p>
 *
 * @author 虞云波 - yuyunbo@3856.cc
 * @version 1.0 Created on 2017年12月12日 下午3:30:20
 */
@RestController
@RequestMapping("/v1/bigscreen")
public class BigScreenDataController {

	@Autowired
	private IBigScreenDataService ibigScreenDataService;
	
	
	/**
	 * 
	 * <p>省份单量排名</p>
	 * 
	 * @param request
	 * @return
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年12月12日 下午3:34:38
	 */
	@RequestMapping(value="/queryOrderNumByProvince",method = RequestMethod.POST)
	public Object getTokenId(HttpServletRequest request){
		
		Result result = new Result(Result.Status.OK, "请求成功", "200");
		List<Map<String,String>> map =  ibigScreenDataService.queryOrderNumByProvince();
		result.setData(map);
		
		System.out.println(map.toString());
		
		return result;
	}
	
	
	/**
	 * 
	 * <p>省份单量占比</p>
	 * 
	 * @param request
	 * @return
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年12月12日 下午3:35:07
	 */
	@RequestMapping(value="/queryProportionByProvince",method = RequestMethod.POST)
	public Object queryProportionByProvince(HttpServletRequest request){
		Result result = new Result(Result.Status.OK, "请求成功", "200");
		List<Map<String,String>> map =  ibigScreenDataService.queryProportionByProvince();
		result.setData(map);
		return result;
	}
	
	
	/**
	 * 
	 * <p>各省指标</p>
	 * 
	 * @param request
	 * @return
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年12月18日 下午1:52:39
	 */
	@RequestMapping(value="/queryTargetDataByProvince",method = RequestMethod.POST)
	public Object queryTargetDataByProvince(HttpServletRequest request){
		Result result = new Result(Result.Status.OK, "请求成功", "200");
		List<Map<String,String>> map =  ibigScreenDataService.queryTargetDataByProvince();
		result.setData(map);
		return result;
	}
	
	
	
	/**
	 * 
	 * <p>大区下站数据</p>
	 * 
	 * @param request
	 * @return
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年12月18日 上午9:18:49
	 */
	@RequestMapping(value="/queryDataByBigArea",method = RequestMethod.POST)
	public Object queryDataByBigArea(HttpServletRequest request){
		Result result = new Result(Result.Status.OK, "请求成功", "200");
		List<Map<String,String>> map =  ibigScreenDataService.queryDataByBigArea();
		result.setData(map);
		return result;
	}
	
	/**
	 * 
	 * <p>揽收率</p>
	 * 
	 * @param request
	 * @return
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年12月18日 下午1:39:19
	 */
	@RequestMapping(value="/queryLanShouRate",method = RequestMethod.POST)
	public Object queryLanShouRate(HttpServletRequest request){
		Result result = new Result(Result.Status.OK, "请求成功", "200");
		Map<String,String> map =  ibigScreenDataService.queryLanShouRate();
		result.setData(map);
		return result;
	}
	
	
	/**
	 * 
	 * <p>下站率</p>
	 * 
	 * @param request
	 * @return
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年12月18日 下午1:39:19
	 */
	@RequestMapping(value="/queryXiaZhanRate",method = RequestMethod.POST)
	public Object queryXiaZhanRate(HttpServletRequest request){
		Result result = new Result(Result.Status.OK, "请求成功", "200");
		Map<String,String> map =  ibigScreenDataService.queryXiaZhanRate();
		result.setData(map);
		return result;
	}
	
	
	/**
	 * 
	 * <p>领件率</p>
	 * 
	 * @param request
	 * @return
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年12月18日 下午1:39:19
	 */
	@RequestMapping(value="/queryLinShouRate",method = RequestMethod.POST)
	public Object queryLinShouRate(HttpServletRequest request){
		Result result = new Result(Result.Status.OK, "请求成功", "200");
		Map<String,String> map =  ibigScreenDataService.queryLinShouRate();
		result.setData(map);
		return result;
	}
	
	
	/**
	 * 
	 * <p>妥投率</p>
	 * 
	 * @param request
	 * @return
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年12月18日 下午1:39:19
	 */
	@RequestMapping(value="/queryTuoTouRate",method = RequestMethod.POST)
	public Object queryTuoTouRate(HttpServletRequest request){
		Result result = new Result(Result.Status.OK, "请求成功", "200");
		Map<String,String> map =  ibigScreenDataService.queryLinShouRate();
		result.setData(map);
		return result;
	}
	
	/**
	 * 
	 * <p>仓库指标</p>
	 * 
	 * @param request
	 * @return
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年12月18日 下午4:56:50
	 */
	@RequestMapping(value="/queryTargetDataByWarehouse",method = RequestMethod.POST)
	public Object queryTargetDataByWarehouse(HttpServletRequest request){
		Result result = new Result(Result.Status.OK, "请求成功", "200");
		List<Map<String,String>> map =  ibigScreenDataService.queryTargetDataByWarehouse();
		result.setData(map);
		return result;
	}
	
	
	/**
	 * 
	 * <p>整体指标</p>
	 * 
	 * @param request
	 * @return
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年12月18日 下午5:04:45
	 */
	@RequestMapping(value="/queryTargetDataByAll",method = RequestMethod.POST)
	public Object queryTargetDataByAll(HttpServletRequest request){
		Result result = new Result(Result.Status.OK, "请求成功", "200");
		List<Map<String,String>> map =  ibigScreenDataService.queryTargetDataByAll();
		result.setData(map);
		return result;
	}
	
	
	/**
	 * 
	 * <p>折线图</p>
	 * 
	 * @param request
	 * @return
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年12月20日 下午4:24:20
	 */
	@RequestMapping(value="/queryBrokenLine",method = RequestMethod.POST)
	public Object queryBrokenLine(HttpServletRequest request){
		Result result = new Result(Result.Status.OK, "请求成功", "200");
		List<Map<String,String>> map =  ibigScreenDataService.queryBrokenLine();
		result.setData(map);
		return result;
	}
	
	
}
